﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="news.aspx.cs" Inherits="WebApplication.News" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>News</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><script type="text/javascript" src="scripts/script.js"></script><link href="styles/global.css" rel="stylesheet" type="text/css" /></head>
<body>
<% Server.Execute("~/header.aspx"); %>
<div class="middle ct">
    <div class="main">
        <div class="nav">
            <label>You Location：</label>
            <a href="default.asp">Home</a>
            <a href="news.asp">News</a>
        </div>
        <h3 class="title"><asp:literal text="News List" runat="server" id="news_title" /><span><asp:literal text="" runat="server" id="news_info" /></span></h3>
        <div class="content">
            <div class="article">
                <% if (id==0) { %>
                <table cellspacing="2" class='grid'>
                    <thead>
                        <tr>
                            <th width='40' style="text-align:center">Id</th>
                            <th>Title</th>
                            <th width='160'>Date</th>
                        </tr>
                    </thead>
                    <tbody class='theBody'>
                        <asp:repeater runat="server" id="news_list">
                            <itemtemplate>
                        <tr>
                            <td align="center"><%# DataBinder.Eval(Container.DataItem,"Id") %></td>
                            <td><a target="_blank" href="?id=<%# DataBinder.Eval(Container.DataItem,"Id") %>"><%# DataBinder.Eval(Container.DataItem,"Title") %></a></td>
                            <td><%# DataBinder.Eval(Container.DataItem,"AddTime") %></td>
                        </tr>
                            </itemtemplate>
                        </asp:repeater>
                    </tbody>
                </table>
                <qsl:pager id="news_pager" runat="server" limit="15" />
                <% } else { %>
                <div id="aa" runat="server"></div>
                <% } %>
            </div>
            <p class="return"></p>
        </div>
    </div>
    <div class="side">
        <h4>Navigation</h4>
        <dl class="gates">
            <dd><a href="company.aspx">Company</a></dd>
            <dd><a href="products.aspx">Products</a></dd>
            <dd class="current"><a href="news.aspx">News</a></dd>
            <dd><a href="bussiness.aspx">Business</a></dd>
            <dd><a href="contact.aspx">Contact</a></dd>
        </dl>
    </div>
</div><% Server.Execute("~/footer.aspx"); %>
</body>
</html>
